﻿<!doctype html>
<html>
<head>
<#include "/part_meta.ftl">
<title>企业管理员-迈小众</title>
<link href="${st.resDomain}/css/style.css" rel="stylesheet">
<link href="${st.resDomain}/css/MC-base.css" rel="stylesheet">
<link href="${st.resDomain}/css/MC.css" rel="stylesheet">
<link href="${st.resDomain}/css/form-base.css" rel="stylesheet">
</head>

<body>
<!--- header --->
<div id="header">
  <div class="main f_clear">
 	<div class="logo"><h2><@shiro.principal property="c_name"/></h2><span>您好！<@shiro.principal property="m_name" />， <a href="${st.domain}/member/logoutDo">退出</a></span></div>
    <div class="f_right"><a href="${st.userDomain}">个人中心</a> <@shiro.hasRole name="SHOP"><a href="${st.shopDomain}">店铺管理</a></@shiro.hasRole><a href="${st.firmDomain}" class="selected">企业管理</a></div>
  </div>
</div>
<!--- header end--->
<!--topnav -->
<div id="topnav">
  <div class="main">
    <ul class="left">
      
      <li><a href="${st.firmDomain}/goods/list">商品</a></li>
      
      <li><a href="${st.firmDomain}/store/list">店铺</a></li>
      <li><a href="${st.firmDomain}/memberVip/list">会员</a></li>
      <li class="selected"><a href="${st.firmDomain}/company/edit">企业</a></li>
      <li><a href="${st.firmDomain}/goodsReport">数据</a></li>
    </ul>
  </div>
</div>
<!--topnav end-->
<div id="main" class="f_clear">
  <div id="left">
    <ul id="menu1">
      <li><a href="${st.firmDomain}/company/edit">企业信息</a></li>
	  <li class="selected"><a href="${st.firmDomain}/companyMember/list">企业成员</a></li>
    </ul>
  </div>
  <div id="right">
    <div id="title"><span class="f_right"><a href="${st.firmDomain}/companyMember/add" class="btn2">添加</a></span>企业成员 - 列表</div>
  	<div id="glygl">
	   <input type="hidden" id="cmId" value="${cmId}"/>
	    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
	      <tr>
	        <th>用户名</th>
	        <th>姓名</th>
	        <th>权限</th>
	        <th class="cz">操作</th>
	      </tr>
	      <#list companyMembers as cm>
	       <tr id="item_${cm.member.memberId}">
	        <td><a href="#" id="memberName_${cm.member.memberId}">${cm.member.name}</a></td>
	        <td>${cm.member.realName}</td>
	        <td>
	         <#list cm.member.roles as role>
	          <#if role.type == 1>
	           ${role.name}&nbsp;
	          </#if>
	         </#list>
	        </td>
	        <td class="cz"><a href="#">修改权限</a> | <a href="javascript:;" id="del_${cm.member.memberId}">删除</a></td>
	       </tr>
	      </#list>
	    </table>
	 </div>
   </div>
</div>
<!--footer-->
<div id="footer">Copyright© 迈小众 <span style="padding-left:30px;">客服QQ：<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3101084438&site=qq&menu=yes" rel="nofollow"><img border="0" src="http://wpa.qq.com/pa?p=2:3101084438:50" alt="点击联系我们，QQ：3101084438" title="点击联系我们，QQ：3101084438"></a></span></div>
<!--footer end-->
<script data-main="${st.resDomain}/scripts/firm/companyMember_list" src="${st.resDomain}/scripts/require.js"></script>
</body>
</html>
